package com.jdk18.jdk8new;

/**
 * Created by xuyiwei on 2018/7/9.
 */
public class Apple {

    private Long id;

    private Long weight;

    public Apple(Long id, Long weight) {
        this.id = id;
        this.weight = weight;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getWeight() {
        return weight;
    }

    public void setWeight(Long weight) {
        this.weight = weight;
    }

    @Override
    public String toString() {
        return "Apple{" +
                "id=" + id +
                ", weight=" + weight +
                '}';
    }
}
